package org.jeecg.modules.basic.materialtype.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 物料分类
 * @Author: jeecg-boot
 * @Date:   2023-07-26
 * @Version: V1.0
 */
@Data
@TableName("wms_basic_material_type")
@ApiModel(value="wms_basic_material_type对象", description="物料分类")
public class BasicMaterialType implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "所属部门")
    @Excel(name = "所属部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**上级分类*/
	@Excel(name = "上级分类", width = 15, dictTable = "wms_basic_material_type", dicText = "name", dicCode = "id")
    @Dict(dictTable = "wms_basic_material_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "上级分类")
    private String pid;
	/**是否有子节点*/
	@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String name;
	/**物料编码*/
	@Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String code;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "is_enabled")
	@Dict(dicCode = "is_enabled")
    @ApiModelProperty(value = "状态")
    private String status;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
	/**检验信息*/
	@Excel(name = "检验信息", width = 15, dicCode = "inspect_info")
	@Dict(dicCode = "inspect_info")
    @ApiModelProperty(value = "检验信息")
    private String inspect;
    /**
     * 删除状态（0，正常，1已删除）
     */
    private Integer delFlag;
    /**
     * 租户id
     */
    private Integer tenantId;

    /**
     * 同批次号入库控制方式
     */
    @Dict(dicCode = "warehouse_overCapacityWay")
    @ApiModelProperty(value = "同批次号入库控制方式")
    private String inboundControlType;

    /**
     * 是否使用 大于0：使用；其他：未使用
     */
    private Integer used;
}
